package com.ruoyi.canteen.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报餐记录对象 order_record
 *
 * @author ruoyi
 * @date 2025-04-02
 */

public class OrderRecord
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    private Long userId;

    private Long weekNumber;

    private Date orderDate;

    private String weekday;

    private String mealType;


    private Long setmealId;

    private Long quantity;


    private String status;

    private Date createTime;
    private Date updateTime;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setWeekNumber(Long weekNumber)
    {
        this.weekNumber = weekNumber;
    }

    public Long getWeekNumber()
    {
        return weekNumber;
    }
    public void setOrderDate(Date orderDate)
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate()
    {
        return orderDate;
    }
    public void setWeekday(String weekday)
    {
        this.weekday = weekday;
    }

    public String getWeekday()
    {
        return weekday;
    }
    public void setMealType(String mealType)
    {
        this.mealType = mealType;
    }

    public String getMealType()
    {
        return mealType;
    }
    public void setSetmealId(Long setmealId)
    {
        this.setmealId = setmealId;
    }

    public Long getSetmealId()
    {
        return setmealId;
    }
    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public OrderRecord() {
    }

    public OrderRecord(Long id, Long weekNumber, Long userId, Date orderDate, String mealType, String weekday, Long setmealId, Long quantity, String status, Date createTime, Date updateTime) {
        this.id = id;
        this.weekNumber = weekNumber;
        this.userId = userId;
        this.orderDate = orderDate;
        this.mealType = mealType;
        this.weekday = weekday;
        this.setmealId = setmealId;
        this.quantity = quantity;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("weekNumber", getWeekNumber())
            .append("orderDate", getOrderDate())
            .append("weekday", getWeekday())
            .append("mealType", getMealType())
            .append("setmealId", getSetmealId())
            .append("quantity", getQuantity())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
